import {createStore} from 'mozz'
import useModel from './useMoel'

export const {Provider, useStore} = createStore(useModel)

export interface OutRadioGrpuupProps {
  value?: any,
  onChange?: (e: any) => any,
  children?: any
}

function RadioGroup(props: OutRadioGrpuupProps) {  
  return (
    <div className="radio-group">
      {props.children}
    </div>
  )
}

export default (props: OutRadioGrpuupProps) => (
  <Provider><RadioGroup {...props}>{props.children}</RadioGroup></Provider>
)